package com.yumeng.framework.auth.shiro.token;

import org.apache.shiro.authc.HostAuthenticationToken;

/**
 * @author wxd
 * @date 2022/9/29 15:59
 */
@Deprecated
public class RemoteAuthToken implements HostAuthenticationToken {

    private final String account;
    private final String password;
    private final String host;

    public RemoteAuthToken(String account, String password){
        this(account, password, null);
    }

    public RemoteAuthToken(String account, String password, String host){
        this.account = account;
        this.password = password;
        this.host = host;
    }

    @Override
    public String getHost() {
        return this.host;
    }

    @Override
    public Object getPrincipal() {
        return this.account;
    }

    @Override
    public Object getCredentials() {
        return this.password;
    }

    public String getAccount() {
        return account;
    }

    public String getPassword() {
        return password;
    }
}
